//
//  XMLHelper.swift
//  C150805_libxml2
//
//  Created by yao_yu on 15/8/5.
//  Copyright © 2015年 yao_yu. All rights reserved.
//

import Foundation


extension String {
    static func fromXmlChar(char: UnsafePointer<xmlChar>) -> String? {
        if char != nil {
            return String.fromCString(UnsafePointer<CChar>(char))
        } else {
            return nil
        }
    }
}
